﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/WithoutPermBasic.Master" AutoEventWireup="true" CodeBehind="Import.aspx.cs" Inherits="PMS.Import" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="Scripts/jquery-plugin/ajaxfileupload.js"></script>
    <script type="text/javascript">
        var ID = com.get.Id;
        var tableName = com.get.tableName;
        //function Up() {
        //    $.ajaxFileUpload
        //    (
        //        {
        //            url: '/Logic/FileRelate/UploadAjax.aspx?method=UploadTest1&ID=' + ID + "&tableName=" + tableName, //用于文件上传的服务器端请求地址
        //            secureuri: false, //是否需要安全协议，一般设置为false
        //            fileElementId: 'btnExp', //文件上传域的ID
        //            dataType: 'json', //返回值类型 一般设置为json
        //            success: function (data)  //服务器成功响应处理函数
        //            {
        //                if (data.state == "success") {
        //                    var dt = data.dt;
        //                    console.log(dt);
        //                    top.wrapper.rightMenuClick({ id: 'closeCurrentrefreshleft', dt: dt });
        //                }
        //            },
        //            error: function (data, status, e)//服务器响应失败处理函数
        //            {
        //                alert(e);
        //            }
        //        }
        //    )
        //}
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceToorbar" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <form id="form2" method="post" enctype='multipart/form-data' action="/Logic/FileRelate/UploadAjax.aspx?method=UploadTest1">
        <input type="file" id="btnExp" name="btnExp" />
        <%-- <input class='easyui-filebox' style='width: 230px' id='filExportIn' name='filExportIn' />--%><a href='#' class='easyui-linkbutton' id='btnExportIn' style='width: 60px; height: 23px' onclick="Up()">导入</a>
    </form>
</asp:Content>
